import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import IFrameContent from '../components/IFrameContent.vue'
import Label from '../components/Label.vue'
import MultiView from '../components/MultiView.vue'
import SceneTree from '../components/SceneTree.vue'
import Menu from '../components/Menu.vue'
import WalkThrough from '../components/WalkThrough.vue'
import PoiSearch from '../components/PoiSearch.vue'

const routes = [
    {
        path: '/',
        component: IFrameContent
    },
    {
        path: '/label',
        component: Label
    },
    {
        path: '/multiview',
        component: MultiView
    },
    {
        path: '/tree',
        component: SceneTree
    },
    {
        path: '/menu',
        component: Menu
    },
    {
        path: "/roam",
        component: WalkThrough
    },
    {
        path: "/search",
        component: PoiSearch
    }
]

const router = createRouter({
    // history: createWebHistory(),
    history: createWebHashHistory(),
    routes,
})

export default router;

